import sytRequest from './../request/syt';

// 获取用户分页列表    GET /admin/user/{page}/{limit}
export const getUserList = async (page: number, limit: number, params?: any) => {
  return await sytRequest.get(`/admin/user/${page}/${limit}`, {
    params
  })
}
// 锁定     GET  /admin/user/lock/{userId}/{status}
export const getUserLock = async (userId: number, status: number) => {
  status = status === 0 ? 1 : 0;
  return await sytRequest.get(`/admin/user/lock/${userId}/${status}`)
}

// 认证批准      GET   /admin/user/approval/{userId}/{authStatus}
export const getUserApproval = async (userId: number, authStatus: number) => {
  return await sytRequest.get(`/admin/user/approval/${userId}/${authStatus}`)
}

// 获取用户信息    GET /admin/user/show/{userId}  
export const getUserById = async (userId: number) => {
  return await sytRequest.get(`/admin/user/show/${userId}`)
}

